﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200098B RID: 2443
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ItemCostData : IMessage<ItemCostData>, IMessage, IEquatable<ItemCostData>, IDeepCloneable<ItemCostData>, IBufferMessage
	{
		// Token: 0x17001EF4 RID: 7924
		// (get) Token: 0x06006DB2 RID: 28082 RVA: 0x00126094 File Offset: 0x00124294
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ItemCostData> Parser
		{
			get
			{
				return ItemCostData._parser;
			}
		}

		// Token: 0x17001EF5 RID: 7925
		// (get) Token: 0x06006DB3 RID: 28083 RVA: 0x0012609B File Offset: 0x0012429B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ItemCostDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001EF6 RID: 7926
		// (get) Token: 0x06006DB4 RID: 28084 RVA: 0x001260AD File Offset: 0x001242AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ItemCostData.Descriptor;
			}
		}

		// Token: 0x06006DB5 RID: 28085 RVA: 0x001260B4 File Offset: 0x001242B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData()
		{
		}

		// Token: 0x06006DB6 RID: 28086 RVA: 0x001260C7 File Offset: 0x001242C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData(ItemCostData other) : this()
		{
			this.itemList_ = other.itemList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006DB7 RID: 28087 RVA: 0x001260F1 File Offset: 0x001242F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData Clone()
		{
			return new ItemCostData(this);
		}

		// Token: 0x17001EF7 RID: 7927
		// (get) Token: 0x06006DB8 RID: 28088 RVA: 0x001260F9 File Offset: 0x001242F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ItemCost> ItemList
		{
			get
			{
				return this.itemList_;
			}
		}

		// Token: 0x06006DB9 RID: 28089 RVA: 0x00126101 File Offset: 0x00124301
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ItemCostData);
		}

		// Token: 0x06006DBA RID: 28090 RVA: 0x0012610F File Offset: 0x0012430F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ItemCostData other)
		{
			return other != null && (other == this || (this.itemList_.Equals(other.itemList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006DBB RID: 28091 RVA: 0x00126144 File Offset: 0x00124344
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.itemList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006DBC RID: 28092 RVA: 0x00126178 File Offset: 0x00124378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006DBD RID: 28093 RVA: 0x00126180 File Offset: 0x00124380
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006DBE RID: 28094 RVA: 0x00126189 File Offset: 0x00124389
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.itemList_.WriteTo(ref output, ItemCostData._repeated_itemList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006DBF RID: 28095 RVA: 0x001261B0 File Offset: 0x001243B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.itemList_.CalculateSize(ItemCostData._repeated_itemList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006DC0 RID: 28096 RVA: 0x001261E9 File Offset: 0x001243E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ItemCostData other)
		{
			if (other == null)
			{
				return;
			}
			this.itemList_.Add(other.itemList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006DC1 RID: 28097 RVA: 0x00126217 File Offset: 0x00124417
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006DC2 RID: 28098 RVA: 0x00126220 File Offset: 0x00124420
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 122U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.itemList_.AddEntriesFrom(ref input, ItemCostData._repeated_itemList_codec);
				}
			}
		}

		// Token: 0x040029CA RID: 10698
		private static readonly MessageParser<ItemCostData> _parser = new MessageParser<ItemCostData>(() => new ItemCostData());

		// Token: 0x040029CB RID: 10699
		private UnknownFieldSet _unknownFields;

		// Token: 0x040029CC RID: 10700
		public const int ItemListFieldNumber = 15;

		// Token: 0x040029CD RID: 10701
		private static readonly FieldCodec<ItemCost> _repeated_itemList_codec = FieldCodec.ForMessage<ItemCost>(122U, ItemCost.Parser);

		// Token: 0x040029CE RID: 10702
		private readonly RepeatedField<ItemCost> itemList_ = new RepeatedField<ItemCost>();
	}
}
